package com.heima.mapper;

import com.heima.entity.TbOrderCollect;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.vo.AmountCollectVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 合作商订单汇总表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-06-09
 */
public interface TbOrderCollectMapper extends BaseMapper<TbOrderCollect> {

    @Select("select * from tb_order_collect where date between #{startTime} and #{endTime}")
    List<TbOrderCollect> selectDate(@Param("startTime") LocalDate startTime, @Param("endTime") LocalDate endTime);

    List<AmountCollectVo> select(@Param("startTime") LocalDate startTime, @Param("endTime") LocalDate endTime);
}
